package cn.itrip.service.Impl;

import cn.itrip.dao.ItripHotelMapper;
import cn.itrip.entity.ItripHotel;
import cn.itrip.service.ItripHotelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ItripHotelServiceImpl extends ServiceImpl<ItripHotelMapper,ItripHotel> implements ItripHotelService {
    @Override
    public List<ItripHotel> getHotelByCityId(String cityId) {
        return baseMapper.getHotelByCityId(cityId);
    }

    @Override
    public ItripHotel getHotelByHotelId(Long hotelId) {
        return baseMapper.getHotelByHotelId(hotelId);
    }
}
